package com.second.mapper;

import com.second.model.pojo.FShop;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class IShopDaoTest2 {
    @Autowired
    private FShopDao shopDao;
    @Test
    public void testFindAllByCityOrProvinceOrArea(){
        List<FShop> shopList=shopDao.findAllByCityOrProvinceOrAreaContainsOrPlace("","","苏州中心商场","");
        shopList.forEach(e-> System.out.println(e));
    }
    @Test
    public void testFindAllByShopScore(){
        List<FShop> list=shopDao.findAll();
        list.forEach(e-> System.out.println(e));
    }
    @Test
    public void test(){
        List<FShop> list=shopDao.findByShopName("同");
        list.forEach(e-> System.out.println(e));
    }
    @Test
    public void test1(){
        List<FShop> list=shopDao.findByConsumption(100d,200d);
        list.forEach(e-> System.out.println(e));
    }




}
